﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="coursePreferences.aspx.cs" Inherits="CourseScheduling.coursePreferences" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Button ID="btnAdd" runat="server" Text="Add" onclick="btnAdd_Click" />
    <br />
    <asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
        AutoGenerateColumns="False" CellPadding="4" DataKeyNames="id" 
        ForeColor="#333333" GridLines="None" Visible="False">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="id" 
                DataNavigateUrlFormatString="~/CoursePreference.aspx?id={0}" Text="View/Edit" />
            <asp:BoundField DataField="NNumber" HeaderText="N Number" 
                SortExpression="NNumber" />
            <asp:BoundField DataField="Year" HeaderText="Year" SortExpression="Year" />
            <asp:BoundField DataField="Term" HeaderText="Term" SortExpression="Term" />
            <asp:BoundField DataField="NumberofCourses" HeaderText="Number of Courses" 
                SortExpression="NumberofCourses" />
            <asp:BoundField DataField="CourseRank" HeaderText="CourseRank" 
                SortExpression="CourseRank" />
            <asp:BoundField DataField="DaysofWeekRank" HeaderText="DaysofWeekRank" 
                SortExpression="DaysofWeekRank" />
            <asp:BoundField DataField="TimesofDayRank" HeaderText="TimesofDayRank" 
                SortExpression="TimesofDayRank" />
            <asp:BoundField DataField="MorningRank" HeaderText="MorningRank" 
                SortExpression="MorningRank" />
            <asp:BoundField DataField="AfternoonRank" HeaderText="AfternoonRank" 
                SortExpression="AfternoonRank" />
            <asp:BoundField DataField="EveningRank" HeaderText="EveningRank" 
                SortExpression="EveningRank" />
            <asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date" />
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlfacultyRequest" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" 
        SelectCommand="SELECT * FROM [vw_facultyPreference]"></asp:SqlDataSource>
</asp:Content>
